]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
PopupSwitchMenuItem: don't override switch by creating it twice
authorMarc-Antoine Perennou <Marc-Antoine@Perennou.com>
Fri, 8 Jul 2011 19:09:10 +0000 (21:09 +0200)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sat, 9 Jul 2011 23:26:24 +0000 (19:26 -0400)
Due to an accidental addition line in commit c8670819, all switches in popup
menus accidentally gave the appearance that they were turned off.

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
https://bugzilla.gnome.org/show_bug.cgi?id=654267

js/ui/popupMenu.js

index 3d854ef7da62af5b779280508cfe537d2a520982..e67729cb5f28f49ecdb516104dc49e8f1c85fe23 100644 (file)
@@ -711,7 +711,6 @@ PopupSwitchMenuItem.prototype = {
         this._statusLabel = new St.Label({ text: '',
                                            style_class: 'popup-inactive-menu-item'
                                          });
-        this._switch = new Switch(false);
         this._statusBin.child = this._switch.actor;
     },